<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Main Complaint - Vometing</title>
<link rel="stylesheet" href="../../style/primaryCSS.css"/>
<link rel="stylesheet" href="../../style/radiobuttons.css"/>
<link rel="stylesheet" href="../../style/input.css"/>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js'></script>
<script type="text/javascript" src="../../javascript/JavaScript1.js"></script>
</head>

<?php
//include("includes/connect.php");
$userID = $_POST['users_idNum'];
$userID = intval($userID);
$complaint = $_POST["complaints_complaint"];
include ("../../database/updateUser.php");

?>

<body>

<div id="main_div">
	<h1>תלונה עיקרית - הקאות</h1>
    
    <form id="Main_complaint_vomating" method="post" action="output.php" enctype="multipart/form-data">
	
	<!-- HIDDEN FIELDS -->
    <input type="text" name="users_idNum" hidden="true" value= "<?php echo htmlspecialchars($userID);?>" />
    <input type="text" name="complaints_complaint" hidden="true" value="<?php echo htmlspecialchars($complaint);?>"/>
    
    <h3>כמה זמן עבר מאז החלו ההקאות?</h3>
	<input type="number" name="vomating_duration" max="10" min="1" />
    <div class="radiobuttons">
    
        <input type="radio" name="vomating_durationUnits" id="vomatingDurationUnits1" value="days"/>
        <label class="radiolabel" for="vomatingDurationUnits1">ימים</label>
    	<input type="radio" name="vomating_durationUnits" id="vomatingDurationUnits2" value="weeks"/>
        <label class="radiolabel" for="vomatingDurationUnits2">שבועות</label>
    	<input type="radio" name="vomating_durationUnits" id="vomatingDurationUnits3" value="months"/>
        <label class="radiolabel" for="vomatingDurationUnits3">חודשים</label>
        
    </div>
    
        
    <h3>תדירות ההקאות?</h3>
	<input type="number" name="vomating_frequency" max="10" min="1" />
    <div class="radiobuttons">
    
        <input type="radio" name="vomating_frequencyUnits" id="vomatingFrequencyUnits1" value="days"/>
        <label class="radiolabel" for="vomatingFrequencyUnits1">ביום</label>
    	<input type="radio" name="vomating_frequencyUnits" id="vomatingFrequencyUnits2" value="weeks"/>
        <label class="radiolabel" for="vomatingFrequencyUnits2">בשבוע</label>
    	<input type="radio" name="vomating_frequencyUnits" id="vomatingFrequencyUnits3" value="months"/>
        <label class="radiolabel" for="vomatingFrequencyUnits3">בחודש</label>
        
   </div>
        
   <div class="checkboxdiv">
        <h3>תוכן הקיא</h3>    
        <label class="checkboxdata"><input type="checkbox" name="vomating_content[]" value="אוכל"/>אוכל</label>
        <label class="checkboxdata"><input type="checkbox" name="vomating_content[]" value="דם"/>דם</label>
        <label class="checkboxdata"><input type="checkbox" name="vomating_content[]" value="מיץ ירוק"/>מיץ ירוק</label>
        <label class="checkboxdata"><input type="checkbox" name="vomating_content[]" value="תוכן שחור"/>תוכן שחור</label>
        <label class="checkboxdata"><input type="checkbox" name="vomating_content[]" value="תוכן שקוף"/>תוכן שקוף</label>
        <label class="checkboxdata"><input type="checkbox" name="vomating_content[]" value="תוכן לא ברור"/>תוכן לא ברור</label>
        
   </div>
   
   <div class="radiobuttons" id="vomatingNausea">

		<h3>האם אתה סובל גם מבחילות?</h3>
        <input type="radio" id="vomatingNausea1" name="vomating_hasNausea" value="1"/>
        <label class="radiolabel" for="vomatingNausea1">כן</label>
        <input type="radio" id="vomatingNausea2" name="vomating_hasNausea" value="0"/>
    	<label class="radiolabel" for="vomatingNausea2">לא</label>		
	<!--If user answered "yes" : need to add vomating and nausea to major complaints-->
    </div>
    
    <div class="radiobuttons" id="vomatingNausea">

		<h3>האם יש סחרחורות?</h3>
        <input type="radio" id="vomatingDizzi1" name="vomating_hasDizzi" value="1"/>
        <label class="radiolabel" for="vomatingDizzi1">כן</label>
        <input type="radio" id="vomatingDizzi2" name="vomating_hasDizzi" value="0"/>
    	<label class="radiolabel" for="vomatingDizzi2">לא</label>
        
    </div>
    
    <div class="radiobuttons" id="vomatingBurn">

		<h3>האם יש צרבת?</h3>
        <input type="radio" id="vomatingBurn1" name="vomating_hasBurn" value="1"/>
        <label class="radiolabel" for="vomatingBurn1">כן</label>
        <input type="radio" id="vomatingBurn2" name="vomating_hasBurn" value="0"/>
    	<label class="radiolabel" for="vomatingBurn2">לא</label>
        
    </div>
    
    <div class="radiobuttons" id="vomatingFoodRelated">

		<h3>האם ההקאות קשורות לאוכל?</h3>
        <input type="radio" id="vomatingFoodRelated1" name="vomating_foodRelated" value="1"/>
        <label class="radiolabel" for="vomatingFoodRelated1">כן</label>
        <input type="radio" id="vomatingFoodRelated2" name="vomating_foodRelated" value="0"/>
    	<label class="radiolabel" for="vomatingFoodRelated2">לא</label>
        
    </div>
    
    <div class="radiobuttons" id="vomatingHiccup">

		<h3>האם ישנם שיהוקים חזקים שאינם בדרך כלל?</h3>
        <input type="radio" id="vomatingHiccup1" name="vomating_hasHiccup" value="1"/>
        <label class="radiolabel" for="vomatingHiccup1">כן</label>
        <input type="radio" id="vomatingHiccup2" name="vomating_hasHiccup" value="0"/>
    	<label class="radiolabel" for="vomatingHiccup2">לא</label>
        
    </div>
    
    <div class="radiobuttons" id="vomatingFever">

		<h3>האם בנוסף יש גם חום?</h3>      
        <input type="radio" id="vomatingFever1" name="vomating_hasFever" value="1"/>
        <label class="radiolabel" for="vomatingFever1">כן</label>
        <input type="radio" id="vomatingFever2" name="vomating_hasFever" value="0"/>
    	<label class="radiolabel" for="vomatingFever2">לא</label>
        <input type="radio" id="vomatingFever3" name="vomating_hasFever" value="2"/>
        <label class="radiolabel" for="vomatingFever3">לא יודע/ת</label> 
        
    </div>
    
    <!--Ori - Only if user answered "yes" : display next questions for fever-->
    
    <h3>כמה חום?</h3>
	<input type="number" name="vomating_fever" max="43" min="35" />
    
    <div class="checkboxdiv">
        <h3>החום</h3>    
        <label class="checkboxdata"><input type="checkbox" name="vomating_feverBehavior[]" value="מגיב למשככי כאבים"/>מגיב למשככי כאבים</label>
        <label class="checkboxdata"><input type="checkbox" name="vomating_feverBehavior[]" value="אינו מגיב למשככי כאבים"/>אינו מגיב למשככי כאבים</label>
        <label class="checkboxdata"><input type="checkbox" name="vomating_feverBehavior[]" value="יציב לאורך היום"/>יציב לאורך היום</label>
        <label class="checkboxdata"><input type="checkbox" name="vomating_feverBehavior[]" value="גבוה יותר בלילה"/>גבוה יותר בלילה</label>
        <label class="checkboxdata"><input type="checkbox" name="vomating_feverBehavior[]" value="גבוה יותר ביום"/>גבוה יותר ביום</label>

    </div>  
    
    <div class="radiobuttons" id="vomatingShiver">

		<h3>האם מלווה בתחושת צמרמורת/רעידות/נקישות שיניים?</h3>
        <input type="radio" id="vomatingShiver1" name="vomating_hasShiver" value="1"/>
        <label class="radiolabel" for="vomatingShiver1">כן</label>
        <input type="radio" id="vomatingShiver2" name="vomating_hasShiver" value="0"/>
    	<label class="radiolabel" for="vomatingShiver2">לא</label>
        
    </div>
    
    <div class="radiobuttons" id="vomatingMedication">

		<h3>האם נטלת תרופות כלשהן לפני או בזמן תחילת התסמינים?</h3>
        <input type="radio" id="vomatingMedication1" name="vomating_tookMedication" value="1"/>
        <label class="radiolabel" for="vomatingMedication1">כן</label>
        <input type="radio" id="vomatingMedication2" name="vomating_tookMedication" value="0"/>
    	<label class="radiolabel" for="vomatingMedication2">לא</label>
        
    </div>    
  
     <div class="radiobuttons" id="vomatingHadBefore">

		<h3>האם חווית אירוע דומה בעבר?</h3>
        <input type="radio" id="vomatingHadBefore1" name="vomating_hadBefore" value="1"/>
        <label class="radiolabel" for="vomatingHadBefore1">כן</label>
        <input type="radio" id="vomatingHadBefore2" name="vomating_hadBefore" value="0"/>
    	<label class="radiolabel" for="vomatingHadBefore2">לא</label>
        
    </div>  
    
    <div class="radiobuttons" id="vomatingOtherPerson">

		<h3>האם מישהו בסביבתך היה חולה עם תסמינים דומים בזמן האחרון?</h3>
        <input type="radio" id="vomatingOtherPerson1" name="vomating_otherPerson" value="1"/>
        <label class="radiolabel" for="vomatingOtherPerson1">כן</label>
        <input type="radio" id="vomatingOtherPerson2" name="vomating_otherPerson" value="0"/>
    	<label class="radiolabel" for="vomatingOtherPerson2">לא</label>
        
    </div>
    
    <div class="radiobuttons">

		<h3>האם ישנם תסמינים נוספים (מלבד הקאות)?</h3>
        <input type="radio" class="condButton" id="additionalvomating1" name="none_additional" value="yes"/>
        <label class="radiolabel" for="additionalpains1">כן</label>
        <input type="radio" class="condButton" id="additionalvomating2" name="none_additional" value="no"/>
    	<label class="radiolabel" for="additionalvomating2">לא</label>		
	                            
        <ul class="nav" hidden>
            <input type="submit" class="condButton" id="submitButton" hidden/>
            <label for="submitButton">שלח</label>
        </ul>  
    </div>   
        
</body>

</html>